const routes = [
    {
        path: "/",
        name: "homepage",
        redirect: { name: "home" },
        meta: { title: "首页" },
        component: () => import("../view/home/index.vue"),
        children: [
            {
                default: true,
                path: "/home",
                name: "home",
                meta: { title: "首页" },
                component: () => import("../view/home/home.vue"),
            },
            {
                path: "/buycar",
                name: "buycar",
                meta: { title: "购物车", isLogin: true },
                component: () => import("../view/buyCar/index.vue"),
            },
            {
                path: "/me",
                name: "me",
                meta: { title: "我的" },
                component: () => import("../view/home/me.vue"),
            },
        ]
    },
    {
        path: "/myorder",
        name: "myorder",
        meta: { title: "我的订单", isLogin: true },
        component: () => import("../view/myOrder/index.vue"),
    },
    {
        path: "/address",
        name: "address",
        meta: { title: "收货地址", isLogin: true },
        component: () => import("../view/address/index.vue"),
    },
    {
        path: "/orderdetail",
        name: "orderdetail",
        meta: { title: "订单详情", isLogin: true },
        component: () => import("../view/orderDetail/index.vue"),
    },
];
export default routes;
